
const { program } = require('commander');

program
  .option('-n, --numbers <numbers>', 'this is a number', 14)
  .action(async (options) => {
    await main(options.numbers);
  })

  program.parseAsync(process.argv)
  .then(() => {
    console.log('DONE');
    process.exit(0);
  })
  .catch((err) => {
    console.error(err);
    process.exit(1);
  });

async function main(numbers) {
  console.log('numbers=' + numbers);
}